//
//  JFGlobalInstance.h
//  JFPersonPage
//
//  Created by Lvjianfeng on 15/5/27.
//  Copyright (c) 2015年 famnotes. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface JFGlobalInstance : NSObject

+ (id)shareIntance;
+ (void)setExtraCellLineHidden: (UITableView *)tableView;
+ (void)setTextFieldCustom:(UITextField*)textField textColor:(UIColor*)textFieldColor placehoder:(NSString*)placehoderStr;
+ (CGRect)boundingRectWithSize:(NSString *)text maxSize:(CGSize)maxSize font:(UIFont *)labelFont;
+ (CGSize)sizeWithString:(NSString *)str font:(UIFont *)font maxSize:(CGSize)maxSize;
+ (UIImageView *)setupNavigationTitleView;
+ (void)showAlertLabel:(UIView*)view text:(NSString*)text afterDelay:(NSTimeInterval)delay;
+ (BOOL)validateNumber:(NSString*)number;
+ (BOOL)validateEmail:(NSString *)email;
+ (NSString *)trimSpace:(NSString *)strValue;
+ (NSString *)replaceString:(NSString *)value replaceValue:(NSString *)rValue;
+ (NSString *)removeSpaceOrreplace:(NSString *)strValue replaceValue:(NSArray *)reValue withStr:(NSString *)withStr;

+ (int)DateConvertToAge:(NSDate *)date;
+ (NSString *)StringFormatDate:(NSDate *)date;
+ (NSString *)StringFormatDateFromTimeStamp:(NSInteger)timeStamp;

- (NSString *)appSystemFont:(NSString *)fontPlistName;

+ (UIImage *)imageWithColor:(UIColor *)color size:(CGSize)size;
@end
